package jobscheduling.model;


/**
 * Klasa, która zapewnia latwy dostep do tablicy: data[machines][jobs], ilosci prac i maszyn;
 */

public class InputData {
	public int[][] data;
	private int machines_;
	private int jobs_;
	
	/** konstruktor do testów */
	public InputData(int machines, int jobs) {
		data = new int[machines][jobs];
		machines_ = machines;
		jobs_ = jobs;
	}
	
	public InputData(int machines, int jobs, int[][] data) {
		this.data = new int[machines][jobs];
		machines_ = machines;
		jobs_ = jobs;
		for(int i=0; i<machines; i++) {
                     System.arraycopy(data[i], 0, this.data[i], 0, jobs);
		}
	}
	
	public int getMachines() {
		return machines_;
	}

	public void setMachines(int _machines) {
		this.machines_ = _machines;
	}

	public int getJobs() {
		return jobs_;
	}

	public void setJobs(int _jobs) {
		this.jobs_ = _jobs;
	}
}